package com.itheima.io.reader.demo02;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;

public class ReaderDemo01 {

    public static void main(String[] args) throws IOException {

        Reader reader = new FileReader("itheima-io-reader\\a.txt");

        int ch = -1;
        while ((ch = reader.read()) != -1) {
            System.out.print((char)ch);
        }

        reader.close();

    }

}
